package cn.luowb.checkchat.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@Schema(description = "feed流参数")
public class PostFeedDTO {

    @Schema(description = "分类id",
            example = "1",
            requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Long cateId;

    @Schema(description = "用户id",
            example = "1",
            requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Long uid;

    @Schema(description = "一页大小",
            example = "10",
            requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Long size;

    @Schema(description = "最后一个查询出来的帖子id",
            example = "1",
            requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Long lastId;

//    @Schema(description = "上次查询的最小时间",
//            example = "2025-09-01 19:07:09",
//            requiredMode = Schema.RequiredMode.REQUIRED)
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private LocalDateTime minTime;

}
